package spring.spring_blog.pojo.request;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@TableName("blog_info")
public class addBlogReq {
    @NotNull(message = "用户不能为空")
    int userId;

    @NotNull(message = "标题不能为空")
    String title;

    @NotNull(message = "内容不能为空")
    String content;

}
